package com.jk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author 纪思齐
 * @version 1.0
 * @BelongsProject: 2203java-financial
 * @BelongsPackage: com.jk.entity
 * @description: TODO   可投资实体类-表property
 * @date 2022/11/2 10:34
 */
@Data
@TableName(value = "property")
public class InvestEntity extends LenderEntity{

    @TableId(value = "property_id",type = IdType.AUTO)
    private  Integer  propertyId;         //投资的资产id

    @TableField(value = "property_name")
    private   String  propertyName;       //资产名称

    @TableField(value = "year_yield")
    private   String  yearYield;       //年化收益率

    @TableField(value = "property_deadline")
    private   String  propertyDeadline;       //投资期限

    @TableField(value = "residue_money")
    private BigDecimal residueMoney;       //剩余金额

    @TableField(value = "project_schedule")
    private   String  projectSchedule;       //项目进度

    @TableField(value = "repayment_method")
    private   String  repaymentMethod;       //还款方式
    @TableField(value = "property_type")
    private   Integer  propertyType;       //投资类型id
    @TableField(value = "property_residue")
    private   BigDecimal  propertyResidue;   //总投资金额
    @TableField(value = "property_safety")
    private   Integer  propertySafety;   //安全等级
    @TableField(value = "property_starttime")
    private   String  propertyStarttime;   //项目启动时间

    //业务字段
    private   String   propertyTypeName;     //投资类型名称

    @TableField(exist = false)
    private   String   minDate;        //最低投资期限时间

    @TableField(exist = false)
    private   String   maxDate;        //最高投资期限时间

    @TableField(exist = false)
    private    String  startDate;

    @TableField(exist = false)
    private    String  endDate;
}
